{% extends "enterprise/base.html" %}

{% block css %}
{% endblock %}

{% block content %}
            <script type="text/javascript">
                var primary_menu = "menu_1";
                var sub_menu = "menu_1_2";
            </script>
            <div class="col-md-12">
            	<form action='' method='POST'>
	                <div class="panel panel-primary">
	                    <div class="panel-heading">
	                        <div class="panel-title"><h3>二、产品中化学物质信息</h3></div>
	                        <div class="panel-options">
	                            <a href="#" data-rel="collapse"><i class="entypo-down-open"></i></a>
	                        </div>
	                    </div>
	                    <div class="panel-body with-table">
                            <table class="input_in table-detail mb5">
                                <tr>
                                    <th rowspan=4>成分信息</th>
                                    <th width="280">化学名称</th>
                                    <td><input name='e_name' value='{{ i.e_name }}' type="text" placeholder="请输入"></td>
                                    <th width="280">分子式</th>
                                    <td><input name='e_molecular_formula' value='{{ i.e_molecular_formula }}' type="text" placeholder="请输入"></td>
                                </tr>
                                <tr>
                                    <th>化学文摘号（识别码）/临时编码</th>
                                    <td><input name='e_code' value='{{ i.e_code }}' type="text" placeholder="请输入"></td>
                                    <th>结构式(上传图片)</th>
                                    <td><input name='e_struct' value='{{ i.e_struct }}' type="text" placeholder="请输入"></td>
                                </tr>
                                <tr>
                                    <th>其他名称</th>
                                    <td><input name='e_other_name' value='{{ i.e_other_name }}' type="text" placeholder="请输入"></td>
                                    <th>是否属于危险化学品</th>
                                    <td>
                                    	<select name='e_is_dangerous'>
                                            <option value='是'>是</option>
                                            <option value='否'>否</option>
                                        </select>
                                    </td>
                                </tr>
                                <tr>
                                    <th>含量（%）</th>
                                    <td><input datatype="n" name='e_amount' value='{{ i.e_amount }}' type="text" placeholder="请输入"></td>
                                    <th>成分折纯量（t/a）</th>
                                    <td><input datatype="n" name='e_shechun' value='{{ i.e_shechun }}' type="text" placeholder="请输入"></td>
                                </tr>
                            </table>	   
	                    </div>
	                </div>
	                <div class="buttons">
	                    <!-- <input onclick="submitSave()" type="submit" class="btn btn-orange btn-lg" value="暂存"> -->
                                <input type="submit" class="btn btn-success btn-lg" value="保存">
				        <input class="btn btn-info btn-lg" type="reset" value="重置"/>
	                </div>
                </form>
            </div>

{% endblock %}

{% block js %}
    <script>
        $(function(){
            $('select[name=e_is_dangerous]').val('{{ i.e_is_dangerous }}');
        })
    </script>
{% endblock %}